﻿using System;
using System.Collections.Specialized;

namespace AiFrame.InterfaceLib.MVP
{
    /// <summary>
    /// Represents a list adapter for using <see cref="IAdjustableList{BusinessObject}"/>
    /// </summary>
    public interface IListAdapter<BusinessObject>
    {
        /// <summary>
        /// Returns the column's caption.
        /// </summary>
        String ColumnCaption { get; }

        /// <summary>
        /// Notifies that one item has changed.
        /// </summary>
        /// <param name="changedAction">The action parameters.</param>
        /// <returns>The column's caption</returns>
        String ItemChanged(NotifyCollectionChangedAction changedAction,
            BusinessObject businessObject);
    }
}
